<?php

$html = '';
if ($_GET['target'] && $_GET['url']) {
	$html .= 'This is test.';
}

if ($_GET['dopost'] == 'test2') {
	exit (json_encode(array(
						'url' => 'http://www.baidu.com/', 
						'title' => 'Jump to baidu',
						'text' => 'This is a test alert.',
						'status' => '0', 
						'img' => '../img/test.jpg'
					 )
		 )
	);
}

if ($_GET['dopost'] == 'test3') {
	exit($_GET['callback'] . '("This is TEST")');
}


exit($html);
